Google Maps Plugin by Intergeo - Version 1.0.1

Version Description

Download this release

Release Info

Developer codeinwp
Plugin Icon 128x128 Google Maps Plugin by Intergeo
Version 1.0.1
Comparing to
See all releases

Code changes from version 1.0.0 to 1.0.1

Files changed (3) hide show
  1. index.php +3 -3
  2. js/rendering.js +1 -1
  3. readme.txt +1 -1
index.php CHANGED
@@ -1,9 +1,9 @@
1
  <?php
2
  /*
3
  Plugin Name: Intergeo Maps - Google Maps Plugin
4
- Plugin URI: http://plugins.svn.wordpress.org/intergeo-maps/
5
  Description: A simple, easy and quite powerful Google Map tool to create, manage and embed custom Google Maps into your WordPress posts and pages. The plugin allows you to deeply customize look and feel of a map, add overlays like markers, rectangles, circles, polylines and polygons to your map. It could even be integraded with your Google Adsense account and show ad on your maps.
6
- Version: 1.0.0
7
  Author: Themeisle
8
  Author URI: http://themeisle.com
9
  License: GPL v2.0 or later
@@ -13,7 +13,7 @@ License URI: http://www.opensource.org/licenses/gpl-license.php
13
  // <editor-fold defaultstate="collapsed" desc="constants">
14
 
15
  define( 'INTERGEO_PLUGIN_NAME', 'intergeo' ); // don't change it whatever
16
- define( 'INTERGEO_VERSION', '1.0.0.78' );
17
  define( 'INTERGEO_ABSPATH', dirname( __FILE__ ) );
18
  define( 'INTERGEO_ABSURL', plugins_url( '/', __FILE__ ) );
19
 
1
  <?php
2
  /*
3
  Plugin Name: Intergeo Maps - Google Maps Plugin
4
+ Plugin URI: http://github.com/codeinwp/intergeo-maps/
5
  Description: A simple, easy and quite powerful Google Map tool to create, manage and embed custom Google Maps into your WordPress posts and pages. The plugin allows you to deeply customize look and feel of a map, add overlays like markers, rectangles, circles, polylines and polygons to your map. It could even be integraded with your Google Adsense account and show ad on your maps.
6
+ Version: 1.0.1
7
  Author: Themeisle
8
  Author URI: http://themeisle.com
9
  License: GPL v2.0 or later
13
  // <editor-fold defaultstate="collapsed" desc="constants">
14
 
15
  define( 'INTERGEO_PLUGIN_NAME', 'intergeo' ); // don't change it whatever
16
+ define( 'INTERGEO_VERSION', '1.0.1' );
17
  define( 'INTERGEO_ABSPATH', dirname( __FILE__ ) );
18
  define( 'INTERGEO_ABSURL', plugins_url( '/', __FILE__ ) );
19
 
js/rendering.js CHANGED
@@ -1 +1 @@
1
- (function(c,b){var a=function(d,f){var e=this;e.map=null;e.container=document.getElementById(d);e.options=f;e.infowindow=null;e._normalizeOptions()};a.styles={DEFAULT:[],RED:[{featureType:"all",stylers:[{hue:"#ff0000"}]}],NIGHT:[{featureType:"all",stylers:[{invert_lightness:"true"}]}],BLUE:[{featureType:"all",stylers:[{hue:"#0000b0"},{invert_lightness:"true"},{saturation:-30}]}],GREYSCALE:[{featureType:"all",stylers:[{saturation:-100},{gamma:0.5}]}],NO_ROADS:[{featureType:"road",stylers:[{visibility:"off"}]}],MIXED:[{featureType:"landscape",stylers:[{hue:"#00dd00"}]},{featureType:"road",stylers:[{hue:"#dd0000"}]},{featureType:"water",stylers:[{hue:"#000040"}]},{featureType:"poi.park",stylers:[{visibility:"off"}]},{featureType:"road.arterial",stylers:[{hue:"#ffff00"}]},{featureType:"road.local",stylers:[{visibility:"off"}]}],CHILLED:[{featureType:"road",elementType:"geometry",stylers:[{visibility:"simplified"}]},{featureType:"road.arterial",stylers:[{hue:149},{saturation:-78},{lightness:0}]},{featureType:"road.highway",stylers:[{hue:-31},{saturation:-40},{lightness:2.8}]},{featureType:"poi",elementType:"label",stylers:[{visibility:"off"}]},{featureType:"landscape",stylers:[{hue:163},{saturation:-26},{lightness:-1.1}]},{featureType:"transit",stylers:[{visibility:"off"}]},{featureType:"water",stylers:[{hue:3},{saturation:-24.24},{lightness:-38.57}]}]};a.prototype={};a.prototype._normalizeOptions=function(){var g=this.options.map||{},f=function(i){return i==="1"},e=function(i,j,k){return j[i]||k},d=function(i){return e(i,b.ControlPosition,0)},h={minZoom:parseInt,maxZoom:parseInt,scrollwheel:f,draggable:f,mapTypeId:function(i){return b.MapTypeId[i]||b.MapTypeId.ROADMAP},mapTypeControl:f,mapTypeControlOptions:{position:d,mapTypeIds:function(i){var j=[];c.each(i,function(k,l){if(b.MapTypeId[l]!==undefined){j.push(b.MapTypeId[l])}});return j},style:function(i){return e(i,b.MapTypeControlStyle,b.MapTypeControlStyle.DEFAULT)}},overviewMapControl:f,overviewMapControlOptions:{opened:f},panControl:f,panControlOptions:{position:d},rotateControl:f,rotateControlOptions:{position:d},scaleControl:f,scaleControlOptions:{position:d},streetViewControl:f,streetViewControlOptions:{position:d},zoomControl:f,zoomControlOptions:{position:d,style:function(i){return e(i,b.ZoomControlStyle,b.ZoomControlStyle.DEFAULT)}}};return c.each(g,function(i,j){if(h[i]===undefined){delete g[i]}else{if(typeof j==="string"){g[i]=h[i](j)}else{c.each(j,function(l,k){if(h[i][l]===undefined){delete g[i][l]}else{g[i][l]=h[i][l](k)}})}}})};a.prototype._getGeocoder=function(){if(!a._geocoder){a._geocoder=new b.Geocoder()}return a._geocoder};a.prototype._renderOverlays=function(){var d=this;c.each(d.options.overlays.marker||[],function(h,g){var f;try{f=new b.Marker({position:new b.LatLng(g.position[0],g.position[1]),map:d.map,title:g.title||"",icon:g.icon||null});b.event.addListener(f,"click",function(){var i,e=c.trim(g.info||"");if(e.length){if(d.infowindow){d.infowindow.close()}i=new b.InfoWindow();i.setContent(e);i.open(d.map,f);d.infowindow=i}})}catch(j){}});c.each(d.options.overlays.polyline||[],function(g,f){var j=[];c.each(f.path||[],function(i,e){if(e.length==2){j.push(new b.LatLng(e[0],e[1]))}});if(j.length>=2){try{new b.Polyline({map:d.map,path:j,strokeColor:f.color||"#000000",strokeOpacity:f.opacity||1,strokeWeight:f.weight||3})}catch(h){}}});c.each(d.options.overlays.polygon||[],function(g,f){var j=[];c.each(f.path||[],function(i,e){if(e.length==2){j.push(new b.LatLng(e[0],e[1]))}});if(j.length>=2){try{new b.Polygon({map:d.map,path:j,strokeColor:f.stroke_color||"#000000",strokeOpacity:f.stroke_opacity||1,strokeWeight:f.weight||3,strokePosition:b.StrokePosition[f.position]||b.StrokePosition.CENTER,fillColor:f.fill_color||"#000000",fillOpacity:f.fill_opacity||0.3})}catch(h){}}});c.each(d.options.overlays.rectangle||[],function(g,f){var j=[];c.each(f.path||[],function(i,e){if(e.length==2){j.push(new b.LatLng(e[0],e[1]))}});if(j.length==2){try{new b.Rectangle({map:d.map,bounds:new b.LatLngBounds(j[0],j[1]),strokeColor:f.stroke_color||"#000000",strokeOpacity:f.stroke_opacity||1,strokeWeight:f.weight||3,strokePosition:b.StrokePosition[f.position]||b.StrokePosition.CENTER,fillColor:f.fill_color||"#000000",fillOpacity:f.fill_opacity||0.3})}catch(h){}}});c.each(d.options.overlays.circle||[],function(g,f){try{new b.Circle({map:d.map,center:new b.LatLng(f.path[0][0],f.path[0][1]),radius:parseFloat(f.path[1][0]),strokeColor:f.stroke_color||"#000000",strokeOpacity:f.stroke_opacity||1,strokeWeight:f.weight||3,strokePosition:b.StrokePosition[f.position]||b.StrokePosition.CENTER,fillColor:f.fill_color||"#000000",fillOpacity:f.fill_opacity||0.3})}catch(h){}})};a.prototype._renderDirections=function(){var e=this,d=new b.DirectionsService();c.each(e.options.directions||[],function(g,f){d.route({origin:f.from,destination:f.to,travelMode:b.TravelMode[f.mode]||b.TravelMode.DRIVING},function(i,h){if(h==b.DirectionsStatus.OK){new b.DirectionsRenderer({map:e.map,directions:i})}})})};a.prototype.render=function(){var d=this,j=d.options.layer||{},i=d.options.weather||{},g=d.options.panoramio||{},k=null,f=d.options.adsense||{};if(!d.container){return false}d.map=new b.Map(d.container,c.extend({center:new b.LatLng(d.options.lat||48.1366069,d.options.lng||11.577085099999977),zoom:d.options.zoom||5,mapTypeId:b.MapTypeId.ROADMAP},d.options.map||{}));if(d.options.styles&&d.options.styles.type){if(d.options.styles.type==-1){try{d.map.setOptions({styles:d.options.styles.custom||[]})}catch(h){}}else{if(a.styles[d.options.styles.type]!==undefined){d.map.setOptions({styles:a.styles[d.options.styles.type]})}}}if(d.options.address){d._getGeocoder().geocode({address:d.options.address},function(l,e){if(e==b.GeocoderStatus.OK){d.map.setCenter(l[0].geometry.location)}})}if(d.options.overlays){d._renderOverlays()}if(d.options.directions){d._renderDirections()}if(j.traffic){(new b.TrafficLayer()).setMap(d.map)}if(j.bicycling){(new b.BicyclingLayer()).setMap(d.map)}if(j.weather){new b.weather.WeatherLayer({map:d.map,temperatureUnits:b.weather.TemperatureUnit[i.temperatureUnits||"CELSIUS"],windSpeedUnits:b.weather.WindSpeedUnit[i.windSpeedUnits||"METERS_PER_SECOND"]})}if(j.cloud){(new b.weather.CloudLayer()).setMap(d.map)}if(j.panoramio){new b.panoramio.PanoramioLayer({map:d.map,tag:g.tag||"",userId:g.userId||""})}if(j.adsense&&intergeo_options.adsense.publisher_id&&c.trim(intergeo_options.adsense.publisher_id)!=""){k=new b.adsense.AdUnit(document.createElement("div"),{map:d.map,visible:true,publisherId:intergeo_options.adsense.publisher_id,backgroundColor:f.backgroundColor||"",borderColor:f.borderColor||"",textColor:f.urlColor||"",titleColor:f.titleColor||"",urlColor:f.textColor||""});if(f.position&&b.ControlPosition[f.position]){k.setPosition(b.ControlPosition[f.position])}if(f.format&&b.adsense.AdFormat[f.format]){k.setFormat(b.adsense.AdFormat[f.format])}}return true};c(document).ready(function(){var d,e,f=window.intergeo_maps||[];for(d=0;d<f.length;d++){e=new a(f[d].container,f[d].options);e.render()}})})(jQuery,google.maps);
1
+ (function(c,b){var a=function(d,f){var e=this;e.map=null;e.container=document.getElementById(d);e.options=f;e.infowindow=null;e._normalizeOptions()};a.styles={DEFAULT:[],RED:[{featureType:"all",stylers:[{hue:"#ff0000"}]}],NIGHT:[{featureType:"all",stylers:[{invert_lightness:"true"}]}],BLUE:[{featureType:"all",stylers:[{hue:"#0000b0"},{invert_lightness:"true"},{saturation:-30}]}],GREYSCALE:[{featureType:"all",stylers:[{saturation:-100},{gamma:0.5}]}],NO_ROADS:[{featureType:"road",stylers:[{visibility:"off"}]}],MIXED:[{featureType:"landscape",stylers:[{hue:"#00dd00"}]},{featureType:"road",stylers:[{hue:"#dd0000"}]},{featureType:"water",stylers:[{hue:"#000040"}]},{featureType:"poi.park",stylers:[{visibility:"off"}]},{featureType:"road.arterial",stylers:[{hue:"#ffff00"}]},{featureType:"road.local",stylers:[{visibility:"off"}]}],CHILLED:[{featureType:"road",elementType:"geometry",stylers:[{visibility:"simplified"}]},{featureType:"road.arterial",stylers:[{hue:149},{saturation:-78},{lightness:0}]},{featureType:"road.highway",stylers:[{hue:-31},{saturation:-40},{lightness:2.8}]},{featureType:"poi",elementType:"label",stylers:[{visibility:"off"}]},{featureType:"landscape",stylers:[{hue:163},{saturation:-26},{lightness:-1.1}]},{featureType:"transit",stylers:[{visibility:"off"}]},{featureType:"water",stylers:[{hue:3},{saturation:-24.24},{lightness:-38.57}]}]};a.prototype={};a.prototype._normalizeOptions=function(){var g=this.options.map||{},f=function(i){return i==="1"},e=function(i,j,k){return j[i]||k},d=function(i){return e(i,b.ControlPosition,0)},h={minZoom:parseInt,maxZoom:parseInt,scrollwheel:f,draggable:f,mapTypeId:function(i){return b.MapTypeId[i]||b.MapTypeId.ROADMAP},mapTypeControl:f,mapTypeControlOptions:{position:d,mapTypeIds:function(i){var j=[];c.each(i,function(k,l){if(b.MapTypeId[l]!==undefined){j.push(b.MapTypeId[l])}});return j},style:function(i){return e(i,b.MapTypeControlStyle,b.MapTypeControlStyle.DEFAULT)}},overviewMapControl:f,overviewMapControlOptions:{opened:f},panControl:f,panControlOptions:{position:d},rotateControl:f,rotateControlOptions:{position:d},scaleControl:f,scaleControlOptions:{position:d},streetViewControl:f,streetViewControlOptions:{position:d},zoomControl:f,zoomControlOptions:{position:d,style:function(i){return e(i,b.ZoomControlStyle,b.ZoomControlStyle.DEFAULT)}}};return c.each(g,function(i,j){if(h[i]===undefined){delete g[i]}else{if(typeof j==="boolean"){j=j?"1":"0";}if(typeof j==="string"){g[i]=h[i](j)}else{c.each(j,function(l,k){if(h[i][l]===undefined){delete g[i][l]}else{g[i][l]=h[i][l](k)}})}}})};a.prototype._getGeocoder=function(){if(!a._geocoder){a._geocoder=new b.Geocoder()}return a._geocoder};a.prototype._renderOverlays=function(){var d=this;c.each(d.options.overlays.marker||[],function(h,g){var f;try{f=new b.Marker({position:new b.LatLng(g.position[0],g.position[1]),map:d.map,title:g.title||"",icon:g.icon||null});b.event.addListener(f,"click",function(){var i,e=c.trim(g.info||"");if(e.length){if(d.infowindow){d.infowindow.close()}i=new b.InfoWindow();i.setContent(e);i.open(d.map,f);d.infowindow=i}})}catch(j){}});c.each(d.options.overlays.polyline||[],function(g,f){var j=[];c.each(f.path||[],function(i,e){if(e.length==2){j.push(new b.LatLng(e[0],e[1]))}});if(j.length>=2){try{new b.Polyline({map:d.map,path:j,strokeColor:f.color||"#000000",strokeOpacity:f.opacity||1,strokeWeight:f.weight||3})}catch(h){}}});c.each(d.options.overlays.polygon||[],function(g,f){var j=[];c.each(f.path||[],function(i,e){if(e.length==2){j.push(new b.LatLng(e[0],e[1]))}});if(j.length>=2){try{new b.Polygon({map:d.map,path:j,strokeColor:f.stroke_color||"#000000",strokeOpacity:f.stroke_opacity||1,strokeWeight:f.weight||3,strokePosition:b.StrokePosition[f.position]||b.StrokePosition.CENTER,fillColor:f.fill_color||"#000000",fillOpacity:f.fill_opacity||0.3})}catch(h){}}});c.each(d.options.overlays.rectangle||[],function(g,f){var j=[];c.each(f.path||[],function(i,e){if(e.length==2){j.push(new b.LatLng(e[0],e[1]))}});if(j.length==2){try{new b.Rectangle({map:d.map,bounds:new b.LatLngBounds(j[0],j[1]),strokeColor:f.stroke_color||"#000000",strokeOpacity:f.stroke_opacity||1,strokeWeight:f.weight||3,strokePosition:b.StrokePosition[f.position]||b.StrokePosition.CENTER,fillColor:f.fill_color||"#000000",fillOpacity:f.fill_opacity||0.3})}catch(h){}}});c.each(d.options.overlays.circle||[],function(g,f){try{new b.Circle({map:d.map,center:new b.LatLng(f.path[0][0],f.path[0][1]),radius:parseFloat(f.path[1][0]),strokeColor:f.stroke_color||"#000000",strokeOpacity:f.stroke_opacity||1,strokeWeight:f.weight||3,strokePosition:b.StrokePosition[f.position]||b.StrokePosition.CENTER,fillColor:f.fill_color||"#000000",fillOpacity:f.fill_opacity||0.3})}catch(h){}})};a.prototype._renderDirections=function(){var e=this,d=new b.DirectionsService();c.each(e.options.directions||[],function(g,f){d.route({origin:f.from,destination:f.to,travelMode:b.TravelMode[f.mode]||b.TravelMode.DRIVING},function(i,h){if(h==b.DirectionsStatus.OK){new b.DirectionsRenderer({map:e.map,directions:i})}})})};a.prototype.render=function(){var d=this,j=d.options.layer||{},i=d.options.weather||{},g=d.options.panoramio||{},k=null,f=d.options.adsense||{};if(!d.container){return false}d.map=new b.Map(d.container,c.extend({center:new b.LatLng(d.options.lat||48.1366069,d.options.lng||11.577085099999977),zoom:d.options.zoom||5,mapTypeId:b.MapTypeId.ROADMAP},d.options.map||{}));if(d.options.styles&&d.options.styles.type){if(d.options.styles.type==-1){try{d.map.setOptions({styles:d.options.styles.custom||[]})}catch(h){}}else{if(a.styles[d.options.styles.type]!==undefined){d.map.setOptions({styles:a.styles[d.options.styles.type]})}}}if(d.options.address){d._getGeocoder().geocode({address:d.options.address},function(l,e){if(e==b.GeocoderStatus.OK){d.map.setCenter(l[0].geometry.location)}})}if(d.options.overlays){d._renderOverlays()}if(d.options.directions){d._renderDirections()}if(j.traffic){(new b.TrafficLayer()).setMap(d.map)}if(j.bicycling){(new b.BicyclingLayer()).setMap(d.map)}if(j.weather){new b.weather.WeatherLayer({map:d.map,temperatureUnits:b.weather.TemperatureUnit[i.temperatureUnits||"CELSIUS"],windSpeedUnits:b.weather.WindSpeedUnit[i.windSpeedUnits||"METERS_PER_SECOND"]})}if(j.cloud){(new b.weather.CloudLayer()).setMap(d.map)}if(j.panoramio){new b.panoramio.PanoramioLayer({map:d.map,tag:g.tag||"",userId:g.userId||""})}if(j.adsense&&intergeo_options.adsense.publisher_id&&c.trim(intergeo_options.adsense.publisher_id)!=""){k=new b.adsense.AdUnit(document.createElement("div"),{map:d.map,visible:true,publisherId:intergeo_options.adsense.publisher_id,backgroundColor:f.backgroundColor||"",borderColor:f.borderColor||"",textColor:f.urlColor||"",titleColor:f.titleColor||"",urlColor:f.textColor||""});if(f.position&&b.ControlPosition[f.position]){k.setPosition(b.ControlPosition[f.position])}if(f.format&&b.adsense.AdFormat[f.format]){k.setFormat(b.adsense.AdFormat[f.format])}}return true};c(document).ready(function(){var d,e,f=window.intergeo_maps||[];for(d=0;d<f.length;d++){e=new a(f[d].container,f[d].options);e.render()}})})(jQuery,google.maps);
readme.txt CHANGED
@@ -3,7 +3,7 @@ Contributors: codeinwp,marius2012,marius_codeinwp,hardeepasrani,themeisle,Madali
3
  Tags: directions, easy map, google, google map, google map plugin, google maps, latitude, location, longitude, map, map directions, map markers, map plugin, map widget, maps, marker, polygons, polylines, routes, store locator, streetview, wp google map, wp google maps, wp maps,plugin,admin,widget,shortcode,google maps, maps, map, map markers, google, google map, maps api, wp maps, wp google maps, easy map, embed, marker, placemark, icon, geocode, shortcode, custom post type, multisite, marker clustering
4
  Requires at least: 3.5
5
  Tested up to: 4.3
6
- Stable tag: 1.0.0
7
  License: GPL v2.0 or later
8
  License URI: http://www.opensource.org/licenses/gpl-license.php
9
 
3
  Tags: directions, easy map, google, google map, google map plugin, google maps, latitude, location, longitude, map, map directions, map markers, map plugin, map widget, maps, marker, polygons, polylines, routes, store locator, streetview, wp google map, wp google maps, wp maps,plugin,admin,widget,shortcode,google maps, maps, map, map markers, google, google map, maps api, wp maps, wp google maps, easy map, embed, marker, placemark, icon, geocode, shortcode, custom post type, multisite, marker clustering
4
  Requires at least: 3.5
5
  Tested up to: 4.3
6
+ Stable tag: trunk
7
  License: GPL v2.0 or later
8
  License URI: http://www.opensource.org/licenses/gpl-license.php
9