Written by Wil Black, [email protected]
This work was originally inspired by my work at Advanced Research Corporation, http://oregonarc.com. You are free to use this software for commercial and non-commercial use, free of charge provided you follow the FreeBSD License (see source code files). Copyright (c) 2011
http://thedatamind.com/demos/mapui.html
You must include Google Maps api and JQuery
- ::
- <script type="text/javascript" src="http://code.jquery.com/jquery-1.7.1.min.js"></script>
- ::
- <script type="text/javascript" src="http://maps.google.com/maps/api/js?sensor=false&v=3.2"></script>
Make a <div> on you page then run
- ::
- Map.init("#map-canvas");
Main class to handle all mapping functions.
- height - STRING
- width - STRING
- center - ARRAY [lat , lon]
- zoom - INETEGER
- geom - ARRAY: Contents of the array are a mix of google.map.Markers, google.maps.Polygons, or google.maps.Polylines
- nodes - ARRAY: Interal use.
- segements - ARRAY
- layers - ARRAY
- mapType - google,maps.MapTypeId.MAPTYPE: MAPTYPE can be ROADMAP, HYBRID, SATELLITE
- scrollwheel - Boolean
- init
- show
- hide
- clear_all
- list2polygon
- resize
- getLayerBounds
- geocode_address
- showLatLng
- createFeature
- editFeature
- make_polygon
- draw_segemnts