[map] open street map plugin

Post your completed addons to share with the community

Post » Tue Jul 01, 2014 10:57 pm

osm plugin v1
by this plugin u can use open street map in yout project.
Image
Image
Image
features:
1- set the location and zoom to the map(map focus).
2- add markers with default icon and custom icon.
3- add information to marker.
4- get location and information about clicked marker.
5-delete all marker.
6- draw circle at specific location with custom color.
7- retrieve current map zoom.
8- change the zoom of the map.
You do not have the required permissions to view the files attached to this post.
B
5
S
2
Posts: 2
Reputation: 878

Post » Wed Jul 02, 2014 3:38 pm

hmm, need to have a look into it. Looking into the screenshots above I got instantly a nice idea of what to develop with this plugin :)
B
44
S
10
G
8
Posts: 437
Reputation: 6,463

Post » Fri Aug 01, 2014 1:35 pm

Thank you very much for this.

Is it possible to generate the project file for the latest Constructor 2 stable version? (v173).

Thank you!
B
3
Posts: 1
Reputation: 175

Post » Wed Aug 13, 2014 7:25 pm

I have a few new ideas for the plugin:

- leaflet clusters
- radius search (set central point or user geolocation)
B
6
S
1
Posts: 7
Reputation: 441

Post » Mon Aug 18, 2014 2:02 pm

The plugin works perfectly in preview mode, but exported it breaks down..
I tried all settings, minified, not minified, all scaling modes, but the result is the same..
The map goes crazy..
I told my dentist I had trouble with my teeth and asked her to fix it without looking in my mouth..
B
54
S
16
G
8
Posts: 6,160
Reputation: 19,775

Post » Fri Aug 22, 2014 1:20 pm

Looks pretty good, congrats :).
B
31
S
13
G
6
Posts: 355
Reputation: 5,058

Post » Wed Sep 10, 2014 5:27 am

@hussein export not working.
In c2runtime.js, it showed <Uncaught TypeError: undefined is not a function>.
Could you check it?
B
3
Posts: 1
Reputation: 177

Post » Sun Oct 18, 2015 3:27 pm

it works nicely with Intel XDK, and exported to Android, works perfectly.
B
37
S
15
G
7
Posts: 1,680
Reputation: 9,612

Post » Wed Oct 21, 2015 8:39 am

i still don't understand how to make a map with some defined points, (markers) and how to add the realtime position of the user (marker geolocation) in the same map
B
37
S
15
G
7
Posts: 1,680
Reputation: 9,612

Post » Wed Oct 21, 2015 10:40 am

imothep85 wrote:i still don't understand how to make a map with some defined points, (markers) and how to add the realtime position of the user (marker geolocation) in the same map


The function to add a marker requires string inputs, not numbers. If you have a variable that's a number, write it like this: str(variable).

The icon path needs to reference an image, or can be a base64 text string placed between quotation marks, ("data:image/png;base64,iVBORw0K..."). You can copy a Google image url, the url might be the base64 string.

Then enter the icon size either as a string variable or a number between quotes ("20").
B
17
S
2
Posts: 88
Reputation: 1,503

Next

Return to Completed Addons

Who is online

Users browsing this forum: No registered users and 2 guests